<#import "common/pager.ftl" as pager>
<#include "common/common.ftl" />
<style>
    .cxp-logo {
        position: absolute;
        bottom: 100px;
        left: 50%;
        margin-left: -50px;
    }

    .cxp-logo img {
        width: 230px;
    }

    .login-admin p {
        font-size: 28px;
        margin-left: -65px;
        bottom: 0px;
    }
</style>

<script language="javascript" type="text/javascript">
    jQuery(document).ready(function () {
        if (window != top) {
            top.location.href = "index.htm";
        }
    });

    function submitForm() {
        $("#loginForm").submit();
    }

    function pressKey() {

        if ((event.keyCode == 13)) {
            submitForm();
        }

    }

</script>
<link rel="shortcut icon" href="${imgUrl("assets")}/img/logo001.jpg"/>

<body>
<div class="login-body">
    <div class="login-wrap">
    </div>
    <div class="login-center">
        <div class="login-admin" style="width:95%;">
            <div class="cxp-logo">
            </div>
            <p style="margin: 0 auto;">Little-History</P>
        </div>
        <div class="login-password">
            <div class="login-password2"></div>
            <div class="login-password1">
                <div id="_loginDiv"></div>
                <br/>
                <form id="loginForm" action="${cxjBasePath}processLogin.htm" method="post">
                    <input type="hidden" id="isLoginPage" value="1"/>
                    <input type="hidden" id="backUrl" name="backUrl" value="${cxjBasePath}response.htm"/>
                    <input type="hidden" id="loginTicket" name="loginTicket" value=""/>
                    <strong><span style="color:red">${loginError}</span></strong>
                    <div class="page-wrap form-horizontal width900">
                        <div class="form-group clearfix">
                            <div class="col-md-12">
                                <div class="col-md-12 padding-left-0 margin-bottom-15">
                                    <label class="control-label col-md-5 login-label">用户名：</label>
                                    <div class="col-md-3 padding-left-0" style="margin-bottom:15px">
                                        <input type="text" value="" name="userAccount" id="userAccount"
                                               class="form-control text">
                                    </div>
                                    <br>
                                    <br>
                                    <label class="control-label col-md-5 login-label">密码：</label>
                                    <div class="col-md-3 padding-left-0" style="margin-bottom:15px"><input
                                            type="password" value="" name="password" id="password" class="form-control text"
                                            onkeypress="return pressKey()"></div>
                                </div>
                                <br>
                                <div class="col-md-12 padding-left-0 margin-bottom-15">
                                    <br>
                                    <label class="control-label col-md-6 login-label"></label>

                                    <div class="col-md-3 padding-left-0">
                                        <input id="loginbtn" type="button" value="登录" onclick="submitForm();"
                                               class="btn blue" style="padding:7px 30px;margin-left: -10px;"/>
                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>
            </div>
        </div>
    </div>
    </form>
</div>
</body>